package nju.software.tagmanager.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import nju.software.tagmanager.pojo.dto.CategoryPageQueryDTO;
import nju.software.tagmanager.pojo.dto.ServiceQueryDTO;
import nju.software.tagmanager.pojo.entity.Category;
import com.baomidou.mybatisplus.extension.service.IService;
import nju.software.tagmanager.pojo.vo.CategoryVO;

import java.util.List;

/**
* @author 97942
* @description 针对表【category(标签类别)】的数据库操作Service
* @createDate 2024-01-12 16:03:24
*/
public interface CategoryService extends IService<Category> {

    List<Category> find(ServiceQueryDTO query);

    IPage<CategoryVO> search(CategoryPageQueryDTO query);

    void deleteCascadeById(Integer categoryId);

    void deleteById(Integer categoryId);
}
